package com.wangshaoyu.controller;

import com.wangshaoyu.service.WebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/service")
public class CommonController {
    @Autowired
    private WebService webService;
    @GetMapping("/link1")
    public String link1()
    {
        webService.common();
        return "link1";
    }
    @GetMapping("/link2")
    public String link2()
    {
        webService.common();
        return "link2";
    }
}
